<!-- dialog1.vue -->
<template>
	<sc-dialog v-model="visible" title="提示" @closed="$emit('closed')">
		内容1
		<template #footer>
			<el-button @click="visible = false">取 消</el-button>
			<el-button type="primary" @click="visible = false">确 定</el-button>
			footer>
			sc-dialog>
			template>

		</template>
		</sc-dialog>
</template>

<script setup>
				import { ref, onMounted } from 'vue'

				const visible = ref(true)

				defineEmits(['closed'])

				onMounted(() => {
					console.log('加载./dialog1组件完成')
				})
</script>
